<?php
namespace app\index\controller;
use think\Db;
class Salary extends Base{
    public function salary(){
        $talents_banner=Db::name('talents_banner')->where('id',1)->find();
        $express=Db::name('express_style')->order('id asc')->select();
        $talents_salary=Db::name('talents_salary')->where('id',1)->find();
        $talents_salary['tag_item']=json_decode($talents_salary['tag_item']);
        $this->assign('system_set',$this->system_set());
        $this->assign('talents_banner',$talents_banner);
        $this->assign('express',$express);
        $this->assign('talents_salary',$talents_salary);
        return $this->fetch();
    }
    public function recruit(){
        $talents_banner=Db::name('talents_banner')->where('id',1)->find();
        $express=Db::name('express_style')->order('id asc')->select();
        $talents_salary=Db::name('talents_salary')->where('id',1)->find();
        $talents_salary['tag_item']=json_decode($talents_salary['tag_item']);
        $talents_advertises=Db::name('talents_advertises')->where('state',1)->order('sort desc')->select();
        $this->assign('system_set',$this->system_set());
        $this->assign('talents_banner',$talents_banner);
        $this->assign('express',$express);
        $this->assign('talents_salary',$talents_salary);
        $this->assign('talents_advertises',$talents_advertises);
        return $this->fetch();
    }

    public function resume(){
        $talents_banner=Db::name('talents_banner')->where('id',1)->find();
        $express=Db::name('express_style')->order('id asc')->select();
        $this->assign('system_set',$this->system_set());
        $this->assign('talents_banner',$talents_banner);
        $this->assign('express',$express);
        return $this->fetch();
    }
}
